// 1. 导入页面所需依赖资源（React核心、UI组件、工具函数等）
import React from 'react';
import { Card, Tabs } from 'antd';
import DeepBuriedCard from '../card/DeepBuriedCard';
import LateralSoilPressureCard from '../card/LateralSoilPressureCard';
import PressureCoefficientCard from '../card/PressureCoefficientCard';
import ShallowBuriedCard from '../card/ShallowBuriedCard';


// 2. 定义页面组件
const SoilPressurePage: React.FC = () => {
  // 使用items配置替代TabPane组件
  const tabItems = [
    {
      key: '1',
      label: '深埋',
      children: (
        <Card title="深埋">
          <DeepBuriedCard />
        </Card>
      ),
    },
    {
      key: '2',
      label: '浅埋',
      children: (
        <Card title="浅埋">
          <ShallowBuriedCard />
        </Card>
      ),
    },
    {
      key: '3',
      label: '侧向土压力',
      children: (
        <Card title="侧向土压力">
          <LateralSoilPressureCard />
        </Card>
      ),
    },
    {
      key: '4',
      label: '填充物侧压力系数',
      children: (
        <Card title="填充物侧压力系数">
          <PressureCoefficientCard />
        </Card>
      ),
    },
  ];

  return <Tabs defaultActiveKey="1" items={tabItems} />;
};

export default SoilPressurePage;